package net.pimpas.web.tests.bb;

import javax.faces.event.ActionEvent;

import net.pimpas.web.jsf.managedbean.ManagedBeanAnnotation;


@ManagedBeanAnnotation(beanName="mbRadio", beanScope="session")
public class RadioMB {
	private String sexo;
	
	public RadioMB() {
		this.setSexo("Male");
	}

	public String getSexo() {
		return sexo;
	}

	public void setSexo(String sexo) {
		this.sexo = sexo;
	}
	
	public void changeSexo(ActionEvent evt) {
		this.setSexo((this.getSexo().equals("Male")) ? "Female" : "Male");
	}
}